#include <algorithm>
#include <fstream>
#include <functional>
#include <iostream>
#include <iterator>
#include <numeric>
#include <string>
#include <vector>

using namespace std;
using namespace placeholders;

int main(int argc, char **argv) {
  vector<int> vec1;
  istream_iterator<int> str(cin), end;
  unique_copy(str, end, back_inserter(vec1));
  sort(vec1.begin(), vec1.end());
  for (auto s : vec1) {
    cout << s << endl;
  }
  return 0;
}